package com.wr.comsumer;

import com.wr.api.ApiMethod;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author 王瑞
 * @description: TODO
 * @date 2020/4/16  15:05
 */
@Component
public class ComsumerServer {

    @Reference
    private ApiMethod apiMethod;

    public String getMethodA(String name){

        String sayhell = apiMethod.methodA(name);

        return sayhell;
    }

    public String getMethodB(String name){

        String sayhell = apiMethod.methodB(name);

        return sayhell;
    }

    public String getMethodC(String name){

        String sayhell = apiMethod.methodC(name);

        return sayhell;
    }




}
